package com.zjp.mg.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.FieldType;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Scheme {

    @MongoId(value = FieldType.INT64)
    private Long schemeId;

    private String orderId;
    // 映射规则
    @Field("schemeName")
    private String schemeName;

    private BigDecimal schemePrice;

    private Integer schemeType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generateTime;


}
